package com.sheyu.mall.product.feign;

import com.sheyu.common.to.SkuReductionTo;
import com.sheyu.common.to.SpuBoundTo;
import com.sheyu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author sheyu
 * @date 2020/8/9 3:20 下午
 */

@FeignClient("coupon-service")
public interface CouponFeignService {
    @PostMapping("/coupon/spubounds/save")
    //@RequiresPermissions("coupon:spubounds:save")
    R saveBounds(@RequestBody SpuBoundTo spuBoundTo);

    @PostMapping("/coupon/skufullreduction/saveInfo")
    R saveReduction(@RequestBody  SkuReductionTo skuReductionTo);
}
